package com.e3.basdoc.currency.server;

import com.e3.basdoc.currency.service.CurrencyQueryService;
import com.e3.basdoc.currency.service.CurrencyService;
import com.e3.core.base.ServiceLocator;

public class CurrencyServiceClient {
	
	private static CurrencyService currencyService;
	
	private static CurrencyQueryService currencyQueryService;
	
	public static CurrencyService getCurrencyService(){
		if(currencyService == null){
			currencyService = ServiceLocator.getService(CurrencyService.class);
		}
		return currencyService;
	}
	
	public static CurrencyQueryService getCurrencyQueryService(){
		if(currencyQueryService == null){
			currencyQueryService = ServiceLocator.getQueryService(CurrencyQueryService.class);
		}
		return currencyQueryService;
	}

}
